package lsysteem;

public class Main
{
	public static void main(String[] args)
	{
		
		LSModel model = new LSModel();
		
		LSystem data = new LSystem();
		data.registerModel(model);
		data.maxIterations = 5;
		
		LSView view = new LSView();
		model.registerView(view);
		
		/*
		 * KOCH
		 *
		data.angle = 90;
		data.axioma = 'F';
		data.addRule('F',"F+F-F-F+F");
		*/
		/*
		 * TRIANGLES
		data.angle = 60;
		data.axioma = 'A';
		data.addRule('A',"B-A-B");
		data.addRule('B',"A+B+A");
		*/
		/*
		 * FRACTAL
		 */
		data.angle = 25;
		
		data.axioma = 'X';
		data.addRule('X',"F-[[X]+X]+F[+FX]-X");
		data.addRule('F',"FF");
		
		/*
		data.angle = 36;
		data.axioma = "[7]++[7]++[7]++[7]++[7]";
		data.addRule('6',"8F++9F----7F[-8F----6F]++");
		data.addRule('7',"+8F--9F[---6F--7F]+");
		data.addRule('8',"-6F++7F[+++8F++9F]-");
		data.addRule('9',"--8F++++6F[+9F++++7F]--7F");
		data.addRule('F',"");
		*/
		data.notifyModel();
	}
}
